package log;

import org.apache.log4j.Logger;

import org.apache.log4j.PropertyConfigurator;

public class Log {
	public Logger logger;
	private static Log logWrite;
	private Log(String filename) {
		PropertyConfigurator.configure("src/propertiesFile/log.properties");
	}
	
	public static Log getInstance(String filename) {
		if(null == logWrite){
			logWrite = new Log(filename);
		}
		return logWrite;
	}
}
